import tkinter as tk

root = tk.Tk()

root.geometry('500x300+100+100')

tk.Label(root, text='学 Python ', padx=0, bg='#6fdfbf').pack()
tk.Label(root, text='学 Python ', padx=5, bg='red').pack()
tk.Label(root, text='学 Python ', padx=5, pady=5, bg='cyan').pack()

#  对齐方式
label_8 = tk.Label(root, text="学python来青灯教育\n对齐方式")
label_8.pack()
label_9 = tk.Label(root, text="学python来青灯教育\n对齐方式", justify=tk.LEFT)
label_9.pack()
label_9 = tk.Label(root, text="学python来青灯教育\n对齐方式", justify="right")
label_9.pack()

root.mainloop()
